package com.qidianit.mes.pro.mapper;

import com.qidianit.mes.pojo.Workflow;

import java.util.List;

/**
 * @ Description:
 * @ Author:WuJingLei
 * @ Date: 2025/9/18 -13:54
 */
public interface WorkflowMapper {
    //多条件分页查询
    List<Workflow> queryWorkflow(Workflow workflow);

    //根据编码查询单个
    Workflow queryByCode(String code);

    //新增
    int saveWorkflow(Workflow workflow);

    //编辑
    int updateWorkflow(Workflow workflow);

    //根据id删除
    int deleteById(Long id);

    //批量删除
    int batchDelete(Long[] id);

    //通过物料code查询工艺
    List<Workflow> queryByMaterialCode(String code);

}
